package com.ereach.animal;

// public private protected
public class Animal {
    public String name;

    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Animal { name: " + name + " }";
    }

    @Override
    public boolean equals(Object obj) {
        Animal animal = (Animal) obj;
        return this.name == animal.name;
    }
}
